package com.xing.feign.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.util.Date;

/**
 * @version 1.0
 * @Author Xing
 * @Date 2023/12/3 21:48
 */
@Data
@TableName("sys_user")
public class SysUserDTO {
    @TableId(type = IdType.NONE)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    private String username;
    private String password;
    private String nickname;
    private String url;
    private Integer gender;
    private String note;
    private Date createDate;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long attention;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long fans;
    private Integer isAnchor;
}
